package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.REFUND_SUBMIT)
public class ConnRefuse_Submit extends BaseAsyPost<CommenBean> {

    public String member_id, phone, content, money, types,state,ordersn,payword;


    public ConnRefuse_Submit(String member_id, String phone, String content, String money, String types, String state,String ordersn,String payword, AsyCallBack<CommenBean> asyCallBack) {
        super(asyCallBack);


        this.member_id = member_id;
        this.phone = phone;

        this.content = content;
        this.money = money;
        this.types = types;
        this.state = state;

        this.ordersn = ordersn;
        this.payword = payword;
    }

    @Override
    protected CommenBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();

        CommenBean loginBean = new CommenBean();

        loginBean = gson.fromJson(object.toString(), CommenBean.class);


        return loginBean;


    }
}



